/*
 *  complex.h
 *  Perceel
 *
 *  Created by Nicola Gigante on 15/04/08.
 *  Copyright 2008 Nicola Gigante. All rights reserved.
 *
 */

#ifndef ______COMPLEX_H__
#define ______COMPLEX_H__

#include <complex>
#include <QtDebug>

using namespace std;

typedef double Real;
typedef complex<Real> Complex;

bool realEqual(Real r1, Real r2);
bool complexEqual(const Complex &c1, const Complex &c2);
bool isReal(const Complex &c);
QString complexToString(const Complex &c, const QString &var = "j");

//bool operator==(const Complex &c1, const Complex &c2);
//bool operator!=(const Complex &c1, const Complex &c2);
bool operator<(const Complex &c1, const Complex &c2);
bool operator>(const Complex &c1, const Complex &c2);
#endif
